//
//  TTXML.h
//  Tint
//
//  Created by Kevin Wu on 4/19/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <libxml/tree.h>
#import "TTXMLNode.h"

@interface TTXML : NSObject {
    xmlDocPtr _XMLDocument;
}

- (id)initWithXMLString:(NSString *)string;
- (id)initWithXMLData:(NSData *)data;
- (id)initWithRootName:(NSString *)name;

+ (TTXML *)XMLWithXMLString:(NSString *)string;
+ (TTXML *)XMLWithXMLData:(NSData *)data;
+ (TTXML *)XMLWithRootName:(NSString *)name;

- (TTXMLNode *)rootElement;

- (NSData *)XMLData;

@end
